# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-botocore
_pkgname=botocore
pkgver=1.13.19
pkgrel=2
pkgdesc='Low-level, data-driven core of boto 3.'
url='https://pypi.org/project/botocore/#files'
arch=('any')
license=('Apache')
depends=('python2' 'python2-urllib3' 'python2-dateutil' 'python2-jmespath'
         'python2-docutils')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('86a1f6e5cd5a5f13b9ae2ceb1f113a136604b97888dd71775d7f6627081fa3704acb8f64143c274839658431f1196f2f35f13b3e2bc6d6ddb916cb5693881c5b')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

